package jcataloger.beans;

import java.io.File;
import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * This class contains info for a disk image such as its name, directory map...<br>
 * Directory map is used in several places. In main gui directoy view is constructed by using this map.
 * @author sekobey
 *
 */
public class DiskImageInfo implements Serializable{
	// name of the disk that is given by the user
	private String diskName;
	// directory tree structure of the disk
	private Map<Integer, List<ImageItem>> directoryList;
	// shows if the disk has been saved into file
	private boolean isSaved;
	
	/**
	 * creates a disk image which has a name, directory map. 
	 * @param diskName shows the name of the disk image.
	 * @param directoryMap shows the directory map of the image
	 * @param isSaved shows if the image is saved.
	 */
	public DiskImageInfo(String diskName, Map<Integer, List<ImageItem>> directoryMap, boolean isSaved) {
		super();
		this.directoryList = directoryMap;
		this.diskName = diskName;
		this.isSaved = isSaved;
	}
	public Map<Integer, List<ImageItem>> getDirectoryList() {
		return directoryList;
	}
	public void setDirectoryList(Map<Integer, List<ImageItem>> directoryList) {
		this.directoryList = directoryList;
	}
	public String getDiskName() {
		return diskName;
	}
	public void setDiskName(String diskName) {
		this.diskName = diskName;
	}
	public boolean isSaved() {
		return isSaved;
	}
	public void setSaved(boolean isSaved) {
		this.isSaved = isSaved;
	}
	
}

